using System.Collections;
using System.Collections.Generic;
using System.Security.Cryptography;
using System.Text;
using UnityEngine;

public static class EncodeUtil 
{
    public static string GetMd5String(string content)
    {
        var md5 = new MD5CryptoServiceProvider();
        var hash = md5.ComputeHash(Encoding.UTF8.GetBytes(content));
        var sb = new StringBuilder();
        foreach (byte b in hash)
        {
            sb.Append(b.ToString("x2"));
        }
        return sb.ToString();
    }
}
